﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FilmAlert.Common;
using FilmAlert.DataAccess;

namespace FilmAlert.BusinessLayer
{
    public class Plots
    {
        /// <summary>
        /// Returns a collection of Plot objects that contains the film plots in all languages available.
        /// </summary>
        /// <param name="imdbId"></param>
        /// <returns></returns>
        public List<Plot> GetTitlePlots(Int32 imdbId)
        {
            return new FilmsDataAccess().GetFilmPlots(imdbId);
        }

        /// <summary>
        /// Returns a collection of Plot objects that contains the film plot for a given langague. The languageId parameter is given by the GetLanguages method.
        /// </summary>
        /// <param name="imdbId"></param>
        /// <param name="languageIsoCode"></param>
        /// <returns></returns>
        public List<Plot> GetTitlePlotsWithLanguageOption(Int32 imdbId, String languageIsoCode)
        {
            return new FilmsDataAccess().GetFilmPlots(imdbId, languageIsoCode);
        }
    }
}
